﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Validator.Constraints;
using SharpArch.Core.DomainModel;

namespace MvcMall.Core.Domains
{
    public class UserGoodsFavorite : Entity
    {
        /// <summary>
        /// 所属会员
        /// </summary>
        [NotNull]
        public virtual User User { get; set; }

        /// <summary>
        /// 收藏的商品
        /// </summary>
        [NotNull]
        public virtual Goods Goods { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [NotNull]
        public virtual DateTime CreateTime { get; set; }
    }
}
